package com.itheima.param;

public class Test3 {
    public static void main(String[] args) {
        int[] arr = {11,22,33};
        System.out.println(arr[0]);         // 11

        int num = 44;
        method(arr,num);

        System.out.println(arr[0]);         // 43
        System.out.println(num);            // 44
    }

    public static void method(int[] arr,double num){
        System.out.println(arr[0]); //11

        System.out.println(num);    //44.0

        num --;

        arr[0] = (int)num;
    }
}
